if(getQueryString("inoviceId")){
    var inoviceId = getQueryString("inoviceId");
}
if(getQueryString("logisticsCompany")){
    $(".logisticsCompany").val(decodeURI(getQueryString("logisticsCompany")));
}
if(getQueryString("waybillId")){
    $(".logisticsOrderNo").val(getQueryString("waybillId"));
}
$(".logistics-form").Validform({
    tiptype: 2,
    callback: function (form) {
        confirmBtn();
        return false;
    }
});
/*保存发票信息*/
function confirmBtn() {
    var params = {
        "id": inoviceId,
        "logisticsOrderNo": $(".logisticsOrderNo").val(),
        "logisticsCompany": $(".logisticsCompany").val(),
    }
    web.doAjax(root.channelInovice.updateSendInfo, 'post', params, function (data) {
        console.log(data)
        if(data.errorCode == 0){
            $.Huimodalalert("操作成功",2000);
            setTimeout(() => {
                parent.searchList(parent.comPageNum);
                cancelLayerNoRefreshFn();
            },200);
        }else {
            $.Huimodalalert(data.msg,2000);
        }
    },1);
}